package vo
{
	import flash3.net.ByteArrayPlus;
	
	public class ListPoolItem implements ISocket
	{
		public var money:int;			//奖金池游戏币
		public var gold:int;			//奖金池金币
		public var time:int;			//奖金池游戏币
		public var name:String;		//奖金池名称
		public var by:String;			//奖金池名称
		public var tip:String;			//奖金池提示格式信息
		
		public function ListPoolItem()
		{
		}
		
		public function read(bap:ByteArrayPlus):void
		{
			money = bap.readInt();
			gold = bap.readInt();
			time = bap.readInt();
			var wDataSize:uint = bap.readByte();
			name = bap.readString(wDataSize);
			wDataSize = bap.readByte();
			by = bap.readString(wDataSize);
			wDataSize = bap.readByte();
			tip = bap.readString(wDataSize);
			trace("name:",name,"tip:",tip, "time:",time,"by:",by);
		}
		public function write(bap:ByteArrayPlus):void
		{
			
		}
		public function parseJson(data:Object):void
		{
			money = data.money;
			gold = data.gold;
			time = data.time;
			name = data.name;
			by = data.by;
			tip = data.tip;
			trace("name:",name,"tip:",tip, "time:",time,"by:",by);
		}
	}
}